package br.edu.unicentro.mymib.base;

import javax.persistence.Persistence;

public class EMFactory {

	private static javax.persistence.EntityManagerFactory fac;

	private EMFactory() {

	}

	public static javax.persistence.EntityManager getManager() {
		if (fac == null) {
			fac = Persistence.createEntityManagerFactory("MyMiB");
		}

		return fac.createEntityManager();
	}

}
